package org.textplantform.model;

import java.io.IOException;

import org.springframework.context.Lifecycle;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.textplantform.common.util.GracefulShutdown;

/**
 * textplantform-model入口 
 */
public class ModelApp {
    public static void main(String[] args) throws IOException {
	    	Lifecycle lc = new ClassPathXmlApplicationContext("/spring/spring-dubbo-model-provider.xml");
	     	System.out.println("启动完成");
	     	GracefulShutdown.waitSigTerm(ModelApp.class);
	     	lc.stop();
    	}
}
